import { gql } from '@apollo/client';

export const GET_TOKEN = gql`
  mutation Login($login: String!, $password: String!) {
    login(login: $login, password: $password) {
      accessToken
    }
  }
`;

export const GET_PRODUCTS = gql`
  query ProductCatalog {
    products(withArchived: false) {
      id
      name
      sku
      defaultBuyPrice
      defaultSellPrice
      ingredientsCost
      operationsCost
      ownProductionDuration
      process {
        id
        isMakingByDefault
        category {
          id
          name
        }
      }
    }
  }
`;
